package com.heraleign.cxf;

import org.springframework.stereotype.Component;

import javax.jws.WebService;

@WebService(serviceName = "GetBsnOffer", // 与接口中指定的name一致
    targetNamespace = "http://cxf.heraleign.com", // 与接口中的命名空间一致,一般是接口的包名倒
    endpointInterface = "com.heraleign.cxf.InterBsnOffer"// 接口地址
)

@Component
public class InterBsnOfferImpl implements InterBsnOffer{
    @Override
    public String getBsnOfferName(String offerId) {
        return "The Bsn Offer Name is :"+ offerId+" !";
    }
}
